package com.one.wishes;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;

import androidx.fragment.app.Fragment;

import com.one.wishes.act.ActivityAddAccount;

public class Fragment_Home_None extends Fragment {
	private View view;
	private ImageButton main_btn_edit;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if (view == null) {
			view = inflater.inflate(R.layout.content_home_none, container, false);
		}
		ViewGroup parent = (ViewGroup) view.getParent();
		if (parent != null) {
			parent.removeView(view);
		}

		main_btn_edit = (ImageButton)view.findViewById(R.id.btn_edit);
		main_btn_edit.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivityForResult(new Intent(getContext(),
						ActivityAddAccount.class), 1);
			}
		});
		return view;
	}
	
}
